package com.test;

public class Grade {
    private String major;
    private int number;

    public Grade() {
    }

    public Grade(String major, int number) {
        this.major = major;
        this.number = number;
    }

    public String getMajor() {
        return major;
    }

    public void setMajor(String major) {
        this.major = major;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    @Override
    public String toString() {
        return "Grade{" +
                "major='" + major + '\'' +
                ", number=" + number +
                '}';
    }
}
